package com.grj.model.article.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 用户点赞表
 * @TableName liked
 */
@TableName(value ="liked")
@Data
public class Liked implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 点赞的用户id
     */
    private String uid;

    /**
     * 被点赞的文章id
     */
    private String aid;

    /**
     * 点赞状态，0取消，1点赞
     */
    private Integer status;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}